package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExamsCountMapper;
import com.ruoyi.system.domain.ExamsCount;
import com.ruoyi.system.service.IExamsCountService;

/**
 * 考试统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
@Service
public class ExamsCountServiceImpl implements IExamsCountService 
{
    @Autowired
    private ExamsCountMapper examsCountMapper;

    /**
     * 查询考试统计
     * 
     * @param id 考试统计主键
     * @return 考试统计
     */
    @Override
    public ExamsCount selectExamsCountById(Long id)
    {
        return examsCountMapper.selectExamsCountById(id);
    }

    /**
     * 查询考试统计列表
     * 
     * @param examsCount 考试统计
     * @return 考试统计
     */
    @Override
    public List<ExamsCount> selectExamsCountList(ExamsCount examsCount)
    {
        return examsCountMapper.selectExamsCountList(examsCount);
    }

    /**
     * 新增考试统计
     * 
     * @param examsCount 考试统计
     * @return 结果
     */
    @Override
    public int insertExamsCount(ExamsCount examsCount)
    {
        examsCount.setCreateTime(DateUtils.getNowDate());
        return examsCountMapper.insertExamsCount(examsCount);
    }

    /**
     * 修改考试统计
     * 
     * @param examsCount 考试统计
     * @return 结果
     */
    @Override
    public int updateExamsCount(ExamsCount examsCount)
    {
        return examsCountMapper.updateExamsCount(examsCount);
    }

    /**
     * 批量删除考试统计
     * 
     * @param ids 需要删除的考试统计主键
     * @return 结果
     */
    @Override
    public int deleteExamsCountByIds(Long[] ids)
    {
        return examsCountMapper.deleteExamsCountByIds(ids);
    }

    /**
     * 删除考试统计信息
     * 
     * @param id 考试统计主键
     * @return 结果
     */
    @Override
    public int deleteExamsCountById(Long id)
    {
        return examsCountMapper.deleteExamsCountById(id);
    }
}
